<?php

/**
 * This is the model metadata class for table "order_addon_scenic".
 */
class OrderAddonScenicMetadata extends CARMDC
{
	/**
	 * @return string the associated database table name
	 */
	public function tableName()
	{
		return 'order_addon_scenic';
	}

	/**
	 * @return array validation rules for model attributes.
	 */
	public function rules()
	{
		// NOTE: you should only define rules for those attributes that
		// will receive user inputs.
		return array(
			array('name', 'length', 'max'=>32),
			array('mobile', 'length', 'max'=>11),
			array('idcard', 'length', 'max'=>20),
			array('play_time', 'safe'),
			// The following rule is used by search().
			// Please remove those attributes that should not be searched.
			array('order_id, name, mobile, idcard, play_time', 'safe', 'on'=>'search'),
		);
	}

	/**
	 * @return array relational rules.
	 */
	public function relations()
	{
		// NOTE: you may need to adjust the relation name and the related
		// class name for the relations automatically generated below.
		return array(
		);
	}

	/**
	 * @return array customized attribute labels (name=>label)
	 */
	public function attributeLabels()
	{
		return array(
			'order_id' => 'Order',
			'name' => '取票人姓名',
			'mobile' => '取票人手机号码',
			'idcard' => '取票人身份证',
			'play_time' => '游玩日期',
		);
	}
}